package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter@Setter
@JsonIgnoreProperties("handler")
public class QuestionComment extends BaseDomain{

    private Long questionId;//问题的id

    private String commentContent;//评论内容

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date createTime;

    private User user;//用户

    private List<QuestionCommentReply> questionCommentReplies = new ArrayList<>();//回复集合
}